<reg_enumsubkeys> : Enumerate Registry Subkeys

This command enumerates all subkeys of the given key.  The result (array of subkeys names) is saved in variable.

Syntax: 

<reg_enumsubkeys>("RegKey", "VarSubkeys", "VarNumOfSubkeys")

RegKey
Full path of registry key to be deleted.  Example: HKEY_CURRENT_USER\Software\MyCompany\NewKey

VarSubkeys
Variable (array) that receives subkeys found.

VarNumOfSubkeys
Variable that receives number of subkeys found.

 

Example: 

<#> This example shows how to enumerate registry keys
<#>
<cmds>
<reg_enumsubkeys>("HKEY_CURRENT_USER\Software","vSubKey","vNumOfSubkeys")
<msg>(-100,-100,"There are %vNumOfSubkeys% registry subkeys of 'HKEY_CURRENT_USER\Software' registry key. Showing first three:
%vSubKey[0]%
%vSubKey[1]%
%vSubKey[2]%
","Message",1)